function getCookie(name) {
    var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
    if (arr = document.cookie.match(reg)) {
        return unescape(arr[2]);
    }

    return null;
}

axios.defaults.baseURL = 'http://127.0.0.1';

let token = window.localStorage.getItem("itcast_health_token")

if(token){
    axios.defaults.headers.common['token'] = token;
}

